<ion-view>
    <ion-header-bar class="index_head">
        <button class="button button-icon icon ion-android-arrow-back" ng-click="$ionicGoBack()" style="color: #fff"></button>
        <div class="h1 title"> 产品信息</div>
    </ion-header-bar>



    <!--<ion-nav-bar>-->
    <!--<ion-header-bar class="index_head">-->
        <!--<button class="button button-icon icon ion-android-arrow-back"  style="color: #fff"></button>-->
        <!--<div class="h1 title">产品信息</div>-->
    <!--</ion-header-bar>-->
        <!--&lt;!&ndash;ng-if="platform.androidAPP||platform.IOSAPP"&ndash;&gt;-->
        <!--<ion-nav-buttons  side="right">-->
            <!--<button ng-if="!ISWEB" class="button" ng-click="proshare()" style="background-color: #fff;">-->
                <!--分享-->
            <!--</button>-->
        <!--</ion-nav-buttons>-->
    <!--</ion-nav-bar>-->


    <ion-content class="bg-fff w4-xtzgDe has-footer">
        <div class="w4-xtzgDe-line" style="height: 5px"></div>
        <div class="w4-xtzgDe-name">{{item.productShortName}}</div>
        <!--<div class="w4-xtzgDe-num">{{item.profitHight.expectAnnualRevenue?item.profitHight.expectAnnualRevenue:'-'}}</div>-->
        <!--<div class="w4-xtzgDe-shouyi">预期年化收益</div>-->
        <div class="pro-detail-status">
            <div class="w4-xtzgDe-btn w4-xtzgDe-btn1" ng-if="item.flagBaoxiao && !share">包销</div>
            <div class="w4-xtzgDe-btn w4-xtzgDe-btn2" ng-if="item.flagZhutui && !share">主推</div>
            <div class="w4-xtzgDe-btn w4-xtzgDe-btn3">{{item.saleStatus | getStatus}}</div>
        </div>
        <div class="w4-xtzgDe-cen1">
            <div class="row">
                <div class="col text-center" style="color:#3b3b3b">投资金额</div>
                <div class="col text-center">预期年化收益</div>
                <div ng-if="!share" class="col text-center">返佣比例</div>
            </div>
            <!--有竞价，使用竞价的返佣比例-->
            <div class="row" ng-if="res.hasBiddingReceitUser" ng-repeat="rebate in res.productAnueList">
                <div class="col text-center">{{item.expectSaleAmount == rebate.pEndAmount ? (rebate.pStartAmount/10000)+'万元以上' : (rebate.pStartAmount/10000) + '-' + (rebate.pEndAmount/10000) + '万元' }}</div>
                <div class="col w4-xtzgDe-cen1-c text-center">{{rebate.pAnnualRevenueExpect}}</div>
                <div class="col w4-xtzgDe-cen1-c text-center" ng-if="userRole == 'RZ' &&!share" ng-click="goCertification($event)">认证可见</div>
                <div class="col w4-xtzgDe-cen1-c text-center" ng-if="userRole == 'DL' &&!share" ng-click="goCertification($event)">登录可见</div>
                <div class="col w4-xtzgDe-cen1-c text-center" ng-if="userRole == 'ZC' &&!share">{{rebate.pRabateProfit +'%'}}</div>
            </div>
            <!--无竞价，使用官网的返佣比例-->
            <div class="row" ng-if="!res.hasBiddingReceitUser" ng-repeat="rebate in item.profitAndRebateList">
                <div class="col text-center">{{ item.expectSaleAmount == rebate.endAmount ? (rebate.startAmount/10000)+'万元以上' : (rebate.startAmount/10000) + '-' + (rebate.endAmount/10000) + '万元' }}</div>
                <div class="col w4-xtzgDe-cen1-c text-center">{{rebate.expectAnnualRevenue}}</div>
                <div class="col w4-xtzgDe-cen1-c text-center" ng-if="userRole == 'RZ'&&!share" ng-click="goCertification($event)">认证可见</div>
                <div class="col w4-xtzgDe-cen1-c text-center" ng-if="userRole == 'DL'&&!share" ng-click="goCertification($event)">登录可见</div>
                <div class="col w4-xtzgDe-cen1-c text-center" ng-if="userRole == 'ZC'&&!share">{{rebate.pIsAgreement === '1'?'协议价':rebate.rebate +'%'}}</div>
            </div>
            <!--<div ng-if="!share" class="w4-xtzgDe-hasbid">-->
            <!--&lt;!&ndash;hasBiddingReceitUser是否有承销人&ndash;&gt;-->
            <!--&lt;!&ndash;<p ng-if="!res.hasBiddingReceitUser">当前报价由<span><img  src="img/sfa.png" width="20px"/>金策师官方</span> 提供</p>&ndash;&gt;-->
            <!--<p ng-if="!res.hasBiddingReceitUser">产品成立后，佣金由产品方直接进行支付。具体以产品方通知时间为准。</p>-->
            <!--<p ng-if="res.hasBiddingReceitUser">当前报价由<span>{{res.biddingReceiptUserInfo.uName}}</span> 提供</p>-->
            <!--<p ng-if="res.hasBiddingReceitUser"><img src="img/bao.png" width="15px">已交保证金{{res.biddingReceiptUserInfo-->
            <!--.bailAmount}}元</p>-->
            <!--</div>-->
        </div>
        <div class="row w4-xtzgDe-progress-div">
            <div class="w4-xtzgDe-progress">
                <div class="w4-xtzgDe-progress-in" ng-attr-style="width:{{item.process}}%"></div>
            </div>
            <div class="w4-xtzgDe-plan">{{item.process}}%</div>
        </div>
        <div class="w4-xtzgDe-info">【{{item.updateDate | formatDate}}更新】{{item.pRecruitmentSummary}}</div>
        <div ng-if="item.activitiesMollionsWealthList.length" class="w4-activity-info">{{item.activitiesMollionsWealthList[0].activitiesDesc}}
            <a ng-click="windowopen(item.activitiesMollionsWealthList[0].activitiesSkipLink)" >{{item.activitiesMollionsWealthList[0].activitiesSkipName}}</a>
        </div>
        <div class="w4-xtzgDe-line"></div>
        <div class="pro-detail-mulu"><span class="pro-detail-round"></span>基础信息</div>
        <div class="w4-xtzgDe-cen1">
            <div class="row">
                <div class="col col-25">产品全称</div>
                <div class="col col-75 text-right">{{item.productName}}</div>
            </div>
            <div class="row">
                <div class="col">募集规模</div>
                <div class="col text-right">{{item.allIssuingScale|abbrMoney}}</div>
            </div>
            <div class="row">
                <div class="col">投资领域</div>
                <div class="col text-right">{{item.investDesc}}</div>
            </div>
            <div class="row">
                <div class="col">付息方式</div>
                <div class="col text-right">{{item.paymentInterestTypeDesc}}</div>
            </div>

            <div class="row">
                <div class="col">大小配比</div>
                <div class="col text-right">{{(item.pSizeRatioExplain||'-')}}</div>
            </div>
            <div class="row">
                <div class="col">发行机构</div>
                <div class="col text-right">{{item.investOwner}}</div>
            </div>
            <div class="row">
                <div class="col">投资期限</div>
                <div class="col text-right">{{item.dueTime}}个月</div>
            </div>
            <div class="row">
                <div class="col">发行时间</div>
                <div class="col text-right">{{item.saleDateStart.split(' ')[0]}}</div>
            </div>
        </div>
        <div ng-if="summary.cpys">
            <div class="w4-xtzgDe-line"></div>
            <div class="pro-detail-mulu"><span class="pro-detail-round"></span>产品优势</div>
            <div class="pro-detail-text" ng-bind-html="summary.cpys?summary.cpys:'--'"></div>
        </div>

        <div ng-if="summary.mjzh">
            <div class="w4-xtzgDe-line"></div>
            <div class="pro-detail-mulu"><span class="pro-detail-round"></span>募集账号</div>
            <div class="pro-detail-text" ng-bind-html="summary.mjzh?summary.mjzh:'--'"></div>
        </div>

        <div ng-if="summary.fxkz">
            <div class="w4-xtzgDe-line"></div>
            <div class="pro-detail-mulu"><span class="pro-detail-round"></span>风险控制</div>
            <div class="pro-detail-text" ng-bind-html="summary.fxkz?summary.fxkz:'--'"></div>
        </div>

        <div ng-if="summary.hkly">
            <div class="w4-xtzgDe-line"></div>
            <div class="pro-detail-mulu"><span class="pro-detail-round"></span>还款来源</div>
            <div class="pro-detail-text" ng-bind-html="summary.hkly?summary.hkly:'--'"></div>
        </div>

        <div ng-if="summary.zjyt">
            <div class="w4-xtzgDe-line"></div>
            <div class="pro-detail-mulu"><span class="pro-detail-round"></span>资金用途</div>
            <div class="pro-detail-text" ng-bind-html="summary.zjyt?summary.zjyt:'--'"></div>
        </div>
        <div ng-if="summary.rzf">
            <div class="w4-xtzgDe-line"></div>
            <div class="pro-detail-mulu"><span class="pro-detail-round"></span>融资方</div>
            <div class="pro-detail-text" ng-bind-html="summary.rzf"></div>
        </div>
        <div ng-if="summary.dbf">
            <div class="w4-xtzgDe-line"></div>
            <div class="pro-detail-mulu"><span class="pro-detail-round"></span>担保方</div>

            <div class="pro-detail-text" ng-bind-html="summary.dbf"></div>
        </div>
        <div ng-if="summary.bcsm">
            <div class="w4-xtzgDe-line"></div>
            <div class="pro-detail-mulu"><span class="pro-detail-round"></span>补充说明</div>

            <div class="pro-detail-text" ng-bind-html="summary.bcsm"></div>
        </div>
        <div ng-show="item.sfaVideo && !share" class="pro-detail-mulu"><span class="pro-detail-round"></span>路演视频</div>
        <div ng-show="item.sfaVideo && !share" class="video-info ">
            <div  id="youkuplayer" style="width:100%;height:200px"></div>
            <div ng-if="item.sfaVideo.isEncryption == 1">
                <div class="item video-pwd" ng-if="user.info.isLogin" >视频播放密码:<span>SFA</span></div>
                <div class="item video-pwd" ng-if="!user.info.isLogin" ng-click="gologin()"><span style="border-bottom: 1px solid #fc353a;margin-right: 5px">登录</span>查看密码</div>
            </div>

            <div ng-if="item.sfaVideo.content">
                <div class="item item-icon-right video-text" ng-init="hideView = false" ng-click="hideView = !hideView">
                    视频简介
                    <i ng-if="!hideView" class="icon ion-ios-arrow-down"></i>
                    <i ng-if="hideView" class="icon ion-ios-arrow-up"></i>
                </div>
                <div class="list video-intro" ng-bind-html="item.sfaVideo.content" ng-class="{hideClass:!hideView,showClass:hideView} " >

                </div>
            </div>

        </div>

        <div class="w4-xtzgDe-line" ng-if="share&&sharePhone"></div>
        <div class="myself-head client-header" ng-if="share&&sharePhone" style="height: auto;padding-top: 0;border-bottom: none">
            <div style="border-bottom: 1px #f0eff5 solid;line-height: 39px;padding-left: 15px">理财师</div>
            <div class="row" style="padding: 15px">
                <div style="width: 60px">
                    <div class="myself-photo" style="margin: 0 auto">
                        <img ng-if="sharePhoneInfo.uImage.indexOf('wx.qlogo')>-1" ng-src="{{shopperUserInfoDto.userHeadImg }}?x-oss-process=image/resize,w_750" alt="头像">
                        <img ng-if="sharePhoneInfo.uImage.indexOf('wx.qlogo')<0" ng-src="{{shopperUserInfoDto.userHeadImg }}?x-oss-process=image/resize,w_750" alt="头像">
                    </div>
                </div>
                <div class="col col-80">
                    <div class="list">
                        <div class="ng-binding">{{shopperUserInfoDto.userName}}&nbsp;<span>{{shopperUserInfoDto.companyPostion}}</span></div>
                        <div style="color: #999">{{shopperUserInfoDto.companyName}}</div>
                    </div>
                </div>
            </div>
            <div class="pro-tuijian" ng-if="tuijianReson">推荐理由：{{tuijianReson}}</div>
        </div>

        <!--<div class="pro-detail-zhu">注：产品成立后，佣金由产品方直接进行支付。具体以产品方通知为准</div>-->

    </ion-content>
    <!--<div ng-if="share && !sharePhoneInfo" class="w4-xtzgDe-bottom bg-fff" >
        <div class="list ">
            &lt;!&ndash;<div ng-if="sharePhoneInfo" class="item item-avatar row" style="background-color:#fc353a;color: #ffffff">&ndash;&gt;
            &lt;!&ndash;<div ui-sref="shoPreview({sphone:sharePhone})" class="col col-20 col-center">&ndash;&gt;
            &lt;!&ndash;<img ng-if="sharePhoneInfo.uImage.indexOf('wx.qlogo')>-1" ng-src="{{sharePhoneInfo.uImage}}" alt="头像" width="50px" height="50px" style="border-radius: 100%">&ndash;&gt;
            &lt;!&ndash;<img ng-if="sharePhoneInfo.uImage.indexOf('wx.qlogo')<0" ng-src="{{requrl}}{{sharePhoneInfo.uImage}}" alt="头像" width="50px" height="50px" style="border-radius: 100%">&ndash;&gt;
            &lt;!&ndash;</div>&ndash;&gt;
            &lt;!&ndash;<div  ui-sref="shoPreview({sphone:sharePhone})" class="col col-50" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">&ndash;&gt;
            &lt;!&ndash;<h2 ng-if="sharePhoneInfo.uRealName" style="color: #ffffff">{{sharePhoneInfo.uRealName}}&nbsp;<span>{{sharePhoneInfo.uJob}}</span></h2>&ndash;&gt;
            &lt;!&ndash;<span ng-if="sharePhoneInfo.uCompanyName" style="font-size: 12px;">{{sharePhoneInfo.uCompanyName}}</span>&ndash;&gt;
            &lt;!&ndash;</div>&ndash;&gt;
            &lt;!&ndash;<a href="tel:{{sharePhone}}" class="item-note col col-30 col-center text-center">&ndash;&gt;
            &lt;!&ndash;<div class="bg-fff" style="padding: 8px 5px;border-radius: 5px;color:#fa324e;font-size: 18px">&ndash;&gt;
            &lt;!&ndash;<img src="img/shareinfo_tel2.png" style="vertical-align: top;margin-right: 3px" width="17px" height="17px">联系他&ndash;&gt;
            &lt;!&ndash;</div>&ndash;&gt;
            &lt;!&ndash;</a>&ndash;&gt;
            &lt;!&ndash;</div>&ndash;&gt;
            <div class="item item-avatar row" style="background-color:#fc353a;color: #ffffff">
                <div  class="col col-20 col-center">
                    <img src="img/SFA_img.png" alt="头像" width="50px" height="50px" style="border-radius: 100%">
                </div>
                <div   class="col col-40" style="padding-top: 20px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
                    金策师

                </div>
                <a ng-click="bodaPhone()" class="item-note col col-40 col-center text-center">
                    <div class="bg-fff" style="padding: 8px 5px;border-radius: 5px;color:#fa324e;font-size: 18px">
                        <img src="img/shareinfo_tel2.png" style="vertical-align: top;margin-right: 3px" width="17px" height="17px">联系我们
                    </div>
                </a>
            </div>
        </div>
    </div>-->


    <div ng-if="share&&sharePhone" class="w4-xtzgDe-bottom row row-no-padding bg-fff">

        <div class="col w4-xtzgDe-icon" style="padding-top: 12px" ui-sref="shopPreview({sphone:sharePhone, share: true})">
            <img width="18px" src="img/shops/shop.png"/>店铺首页
        </div>
        <div class="col w4-xtzgDe-icon" style="padding-top: 12px" ui-sref="shopChat({tid:sharePhoneInfo.id,ismaster:false,proid:proid,protype:item.productType,prosource:'platform',sphone:sharePhone})">

            <img width="20px" src="img/prozx.png">咨询

        </div>
        <div class="col" ng-click="goClientOrder(item.productId,item.productType,item.productShortName,sharePhone)" ng-if="item.saleStatus == 01 || item.saleStatus == 02 || item.saleStatus == 03">
            <div class="w4-xtzgDe-order">预约</div>
        </div>
        <div class="col" ng-if="item.saleStatus == 04">
            <div class="w4-xtzgDe-order w4-over">已募满</div>
        </div>
        <div class="col" ng-if="item.saleStatus == 05">
            <div class="w4-xtzgDe-order w4-over">募集结束</div>
        </div>
    </div>

    <div ng-if="!share" class="w4-xtzgDe-bottom row row-no-padding bg-fff">

        <div ng-if="platform.androidAPP||platform.IOSAPP"  class="col w4-xtzgDe-icon" ng-click="modal.copy_brief()" style="padding-top: 9px">
            <img width="25px" src="img/copy.png"/>复制
        </div>
        <div class="col w4-xtzgDe-icon">
            <a ng-click="bodaPhone()" style="color: #636363">
                <img width="25px" src="img/phone.png">咨询
            </a>
        </div>

        <div ng-if="!res.biddingReceiptUserInfo.currentBiddingIsLogin && item.flagBidding" class="col" ng-click="goBid(item.productId)" >
            <div class="w4-xtzgDe-goBidding">竞价收单</div>
        </div>
        <!--05/17/新增单独控制不能竞价-->
        <!--2016/08/22--4.2.3版本需求/如果产品不可竞价，隐藏不可竞价按钮-->
        <!--<div ng-if="!res.biddingReceiptUserInfo.currentBiddingIsLogin && !item.flagBidding" class="col" >-->
        <!--<div class="w4-xtzgDe-goBidding w4-xtzgDe-notBudding">不可竞价</div>-->
        <!--</div>-->
        <div ng-if="res.biddingReceiptUserInfo.currentBiddingIsLogin" class="col" ng-click="giveup(res.biddingReceiptUserInfo.biddingReceiptId)">
            <div class="w4-xtzgDe-goBidding">放弃承销</div>
        </div>
        <div class="col" ng-click="goOrder(item.productId)"  ng-if="item.saleStatus == 01 || item.saleStatus == 02 || item.saleStatus == 03">
            <div class="w4-xtzgDe-order">立即预约</div>
        </div>
        <div class="col" ng-if="item.saleStatus == 04">
            <div class="w4-xtzgDe-order w4-over">已募满</div>
        </div>
        <div class="col" ng-if="item.saleStatus == 05">
            <div class="w4-xtzgDe-order w4-over">募集结束</div>
        </div>
    </div>

</ion-view>
